package com.group.elmboot.service.impl;

import java.util.List;

import com.group.elmboot.mapper.FoodMapper;
import com.group.elmboot.po.Food;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.group.elmboot.service.FoodService;

@Service
public class FoodServiceImpl implements FoodService{
	
	@Autowired
	private FoodMapper foodMapper;

	@Override
	public List<Food> listFoodByBusinessId(Integer businessId) {
		return foodMapper.listFoodByBusinessId(businessId);
	}
	
	@Override
	public int updateFoodInfoById(Food food) {
		return foodMapper.updateFoodInfoById(food);
	}
	
	@Override
	public int insertFoodInfo(Food food) {
		return foodMapper.insertFoodInfo(food);
	}
	
	@Override
	public int deleteFoodInfo(Integer foodId) {
		return foodMapper.deleteFoodInfo(foodId);
	}
}
